<?
class IndexAction{
	
	public $smarty;
	public $model;
	//构造方法，初始化 
	public function __construct(&$_smarty,&$_model) {
		$this->smarty = $_smarty;
		$this->model = $_model;

	}
	
	public function action(){
        print_r($this->model->getUserOrderByLikeCount());
        $this->smarty->assign('userList', $this->model->getUserOrderByLikeCount());
		$this->smarty->assign('name','逗比');
		$this->smarty->display('templates/index.tpl');
	}
	
	
}